<?php
include 'common/autoload.php';
include 'common/header.html';
include 'common/left.html';
include 'common/page.php';
include 'common/area.inc.php';
include 'common/Prod_Common.php';
if($_REQUEST['dname']){
	$sql ="SELECT * FROM pft_member WHERE dname LIKE '%{$_REQUEST['dname']}%'";
}else{
	$sql ="SELECT * FROM pft_member LIMIT 100";
}
$GLOBALS['le']->query($sql);
$r = array();
while($row=$GLOBALS['le']->fetch_assoc()){
	$r[]=$row;
}
// print_r($r);
?>
<link rel="stylesheet" href="css/tao.css"/>
<link rel="stylesheet" href="css/page.css" media="all" />
<link rel="stylesheet" href="css/plist.css" media="all" />
<div class="r_content" id="bind_tao">
    <h3 class="mc_title">
        <span class="mctit_1"><span class="mctit_2">会员搜索</span></span>
    </h3>
    <div class="container" style="padding-left;10px;";>
		<form method="post" action="">
        <div class="input-wrap">
            <input type="text" <?=$disable?> placeholder="请输入搜索的会员名称" name="dname" >
            <button type="submit"class="chkbtn">搜&nbsp;&nbsp;&nbsp;索</button>
        </div>
		</form>
    </div>
	<div class="ticket_list_wrap">
	<table class="list_table">
		<thead>
		<tr>
			<th>会员ID</th>
			<th>会员账号</th>
			<th>会员名称</th>
			<th>操作</th>
		</tr>
		</thead>
		<tbody>
		<?foreach($r as $v):?>
		<tr>
			<th><?=$v['id']?></th>
			<th><?=$v['account']?></th>
			<th><?=$v['dname']?></th>
			<th>操作</th>
		</tr>
		<?endforeach;?>
		</tbody>
	</table>
	</div>
</div>
<style>
.ticket_list_wrap,.sms_wrap{border:1px solid #CCCCCC;margin-top:10px;padding-bottom:10px;}
.list_table{width:100%;}
.list_table thead{background: #f5f4f4;line-height: 35px;}
.list_table th,td{text-align:center;}
.list_table tr:hover{color:#FFF;background:#007CFF;}
.sms_wrap p{padding:5px;}
.sms_wrap textarea{width:98%;height:150px;margin:0 1%;resize:none;margin-bottom:10px;}
.btn{display:block;width:126px;height:32px;margin:0 auto;text-align:center;line-height:32px;background:#F57403;color:#FFF;border-radius:4px;border:none;cursor:pointer;font-weight:bold;}
.btn:hover{background:#E56F03;}
.product_i{color:#008EC1;}
</style>

<?
include 'common/footer.html';
?>